package com.lemon.rpcframe.dao.entity;

import java.util.Date;

import com.lemon.rpcframe.annotation.SCFMember;
import com.lemon.rpcframe.annotation.SCFSerializable;
import com.lemon.rpcframe.dao.annotation.Id;
import com.lemon.rpcframe.dao.annotation.Table;

/**
 * 
 *
 *
 * @author wangyazhou
 * @version 1.0
 * @date  2015年9月14日 上午11:25:17
 * @see 
 * @since
 */
@Table(name = "t_node_define")
@SCFSerializable
public class NodeDefineBean {
    
    @Id
    @SCFMember
    private long id;

    @SCFMember
    private String nodeType;

    @SCFMember
    private String nodeGroup;

    @SCFMember
    private String nodeIdentity;

    @SCFMember
    private String clsterName;

    @SCFMember
    private Date createDate;

    @SCFMember
    private String ip;

    @SCFMember
    private int port;

    @SCFMember
    private int status;

    @SCFMember
    private int threads;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNodeType() {
        return nodeType;
    }

    public void setNodeType(String nodeType) {
        this.nodeType = nodeType;
    }

    public String getNodeGroup() {
        return nodeGroup;
    }

    public void setNodeGroup(String nodeGroup) {
        this.nodeGroup = nodeGroup;
    }

    public String getNodeIdentity() {
        return nodeIdentity;
    }

    public void setNodeIdentity(String nodeIdentity) {
        this.nodeIdentity = nodeIdentity;
    }

    public String getClsterName() {
        return clsterName;
    }

    public void setClsterName(String clsterName) {
        this.clsterName = clsterName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        if (createDate == null) {
            createDate = new Date();
        }
        this.createDate = createDate;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getThreads() {
        return threads;
    }

    public void setThreads(int threads) {
        this.threads = threads;
    }

}
